package WTE;

import java.util.Scanner;

public class Demo_04 {

    /**
     * 计算糖果 过
     */
    public void method1(){
        Scanner in = new Scanner(System.in);
        int a_b = in.nextInt();
        int b_c = in.nextInt();
        int ab = in.nextInt();
        int bc = in.nextInt();

        int a = (a_b+ab)/2;
        int b1 = a-(a_b);
        int b2 = (ab - a);
        if(b1 != b2) {
            System.out.println("No");
            return;
        }

        int c1 = b1 - b_c;
        int c2 = bc - b1;
        if(c1 != c2){
            System.out.println("No");
            return;
        }
        System.out.println(a+" "+b1+" "+c1);
    }

    /**
     * 进制转换
     */
    public void method2(){

    }
}






